package Game;

public class Player extends Hero{
    public void doctor(Doctor doctor){
        doctor.treat();
    }
    public void hunter (Hunter hunter){
        hunter.hunt();
        hunter.attack();
    }
    public void farmer(Peasant farmer){
        farmer.mine();
        farmer.treat();
    }
    public void robber (Robber robber){
        robber.rob();
        robber.attack();
    }

    public  static void main (String []args){
        Player player=new Player();
        player.doctor(new Doctor());
        player.information("医生",12,"我是医生");
    }
}
